
<%@ include file="../confHeader.jsp" %>
<%@ include file="../mensagens.jsp" %>
<html>
<head>
	
</head>
<body>

 <html:form  action="construtoraAction" method="POST" onsubmit="return true;">
 	<html:hidden property="idConstrutora" value="${to.idConstrutora}"/> 	
 	
   <div class='pageForm'>
      <div class='formTitle'>  			
  			<bean:message key="construtora.entity"/>
      </div>        
        <div class='formField'>
            <label><bean:message key="construtora.nome"/></label>: &nbsp;
            ${el:write('to.nome',pageContext)}
        </div>   
        
        <div class='formField'>
            <label><bean:message key="local.city"/></label>: &nbsp;
	         ${el:write('to.cidade',pageContext)}
        </div>       
        
         <div class='formField'>
            <label><bean:message key="local.state"/></label>: &nbsp;     
              ${el:write('to.uf.nome',pageContext)}
        </div>
        
        <hr size="1">
          <div class='formButton'> 
            <a onclick="javascript:alterar();" class="linkButton">  <bean:message key="app.button.update"/></a>          
         		&nbsp;  
      		<a onclick="javascript:remover();" class="linkButton">   <bean:message key="app.button.delete"/></a>          
         		&nbsp;
           	<a onclick="javascript:back()" class="linkButton">   <bean:message key="app.button.return"/></a> 
         </div>    
            
    </div>
    </html:form>
   
      
<script type="text/javascript">
 // <!--
   
  var action= '<html:rewrite page="/construtoraAction.do"/>';
  var nForm =  'ConstrutoraForm';

 function remover(){	 
	    if(confirm('<bean:message key="app.prompt.confirm.delete"/>\n<bean:message key="msg.06.01"/>')){
		 executeForm(nForm, action, 'remover');
	 }	 
 }
 
  function alterar(){	 
	 executeForm(nForm, action, 'goAltualizar');
 }
 
  //-->
</script>
</body>
</html>
